import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import global from "./utils/globals";
import 'element-plus/dist/index.css'
//./router/index.js
import router from "./router";
import * as ElementPlusIconsVue from '@element-plus/icons-vue'


const app=createApp(App)
//全局配置
app.use(global,{});
//element-ui
app.use(ElementPlus);
//组件路由
app.use(router);
//组件间数据通信共享

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

router.isReady().then(() => {
    app.mount('#app', true);
});
